/******************************************************************
 * Created by: Goh Chee Hong                                    
 * Date of Creation:
 * Date of last modification: 31st/Jan/2009
 * Status: Finished.
 *                                                                
 * Description: A form that prompts a user for a response on trust                           
 * ...
 ******************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Pbdms.Forms.Tools
{
    public partial class frmOption : Form
    {
        public frmOption()
        {
            InitializeComponent();
        }
        public frmOption(string title,string choice1, string choice2)
        {
            InitializeComponent();
            this.Text = title;
            radio1.Text = choice1;
            radio2.Text = choice2;
        }
        public int choice;
        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            if (radio1.Checked == true)
            {
                choice = 1;
            }
            else
            {
                choice = 2;
            }
            this.Close();
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            
        }
    }
}